//每十分钟自动刷新页面
  window.onload = function (){

      (function($){
          funObj = {
              timeUserFun:'timeUserFun',
          }
          $[funObj.timeUserFun] = function(time){
              var time = time || 2;
              var userTime = time*60;
              var objTime = {
                  init:0,
                  time:function(){
                      objTime.init += 1;
                      if(objTime.init == userTime){
                          window.location.reload(); // 用户到达未操作时限，自动刷新页面
                      }
                  },
                  eventFun:function(){
                      clearInterval(testUser);
                      objTime.init = 0;
                      testUser = setInterval(objTime.time,1000);
                  }
              }

              var testUser = setInterval(objTime.time,1000);

              var body = document.querySelector('html');
              body.addEventListener("click",objTime.eventFun);
              body.addEventListener("keydown",objTime.eventFun);
              body.addEventListener("mousemove",objTime.eventFun);
              body.addEventListener("mousewheel",objTime.eventFun);
          }
      })(window)
       timeUserFun(10);//分钟数，可以有一位小数
  }
